<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>

        window.onload = function () {
            var img = document.getElementById("checkCode");
            img.onclick = function () {
                var date = new Date().getTime();

                img.src = "/day15/checkCodeServlet?" + date;
            }

        }


    </script>


</head>
<body>


<img id="checkCode" src="/day15/checkCodeServlet"/>

<a id="change" href="">看不清换一张？</a>

</body>
</html>